<?php
class worldmap
{
	const MAP_LAYER_PRIMS = 0;
	const MAP_LAYER_LANDSCAPE = 1;
	
	private $simcaps;
	
	public function __construct(simcaps $simcaps)
	{
		$this->simcaps = $simcaps;
	}
	
	public function getlayerdata($maptype = self::MAP_LAYER_PRIMS)
	{
		$request = array(
			'Flags' => $maptype
		);
		$maplayer = $this->simcaps->sendrequest('MapLayer',$request);
		$this->simcaps->_debug(print_r($maplayer,true),5);
		return $maplayer;
	}
}
?>